iT邦幫忙

2022 iThome 鐵人賽

DAY 21
0
class FrameFormatter(abc.ABC):

    @abc.abstractmethod
    def prepare_pack_data(self):
        return NotImplemented

    @abc.abstractmethod
    def pack_label_and_content(self):
        return NotImplemented

    @abc.abstractmethod
    def store_pack_result(self):
        return NotImplemented

    @abc.abstractmethod
    def generate_report(self):
        return NotImplemented

    @property
    @abc.abstractmethod
    def with_ann_image_count(self):
        return NotImplemented

    @property
    @abc.abstractmethod
    def annotation_count(self):
        return NotImplemented

    @property
    @abc.abstractmethod
    def report_id(self):
        return NotImplemented

    def before_prepare_pack_data(self):
        pass

    def after_prepare_pack_data(self):
        pass

上一篇
D20 - performance issue
下一篇
D22 - Code Review
系列文
寫個好的lib大家用吧!那些好用的lib常見的套路與想法25
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言